<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@include file="../common.jsp" %>
    
<tr>
	<td class="spacingColumnWidthLess"></td>
	<td class="formLabel"><label>Owner Id</label></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formField">
		<form:input path="docOwnerId" id="userIdResult" readonly="true" cssClass="text"/>
	</td>
	<td class="spacingColumnWidthMedium"></td>
	<td class="formLabel"><label>Business Unit</label></td>		<!-- changed from location to business unit on 25-02-2012 as told by shubh -->
	<td class="spacingColumnWidthLess"></td>
	<td class="formField">
		<form:hidden path="docLocId" id="locationNameResult"/>
		<form:input path="docLoc" id="locationName" readonly="true" cssClass="text"/>
	</td>
	<td class="spacingColumnWidthLess"></td>									
</tr>
<tr>
	<td class="spacingColumnWidthLess"></td>
	<td class="formLabel"></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formError">
		<form:errors path="docOwnerId" cssClass="errorMsg"></form:errors>
	</td>
	<td class="spacingColumnWidthMedium"></td>
	<td class="formLabel"></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formError">
		 <form:errors path="docLocId" cssClass="text errorMsg"></form:errors> 
	</td>
	<td class="spacingColumnWidthLess"></td>
</tr>	
<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
<tr>
	<td class="spacingColumnWidthLess"></td>
	<td class="formLabel"><label>Owner Name</label></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formField">
		<form:input path="docOwnerName" id="userNameResult" readonly="true"  cssClass="text"/>
	</td>
	<td class="spacingColumnWidthMedium"></td>
	<td class="formLabel"><label>Department</label></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formField">
		<form:hidden path="docDepttId" id="departmentNameResult" />
		<form:input path="docDeptt" id="departmentName" readonly="true"  cssClass="text"/>
		<c:if test='${!fn:contains(currentDocStatus,"RenewWfip") }'>
			<a href="#" onclick="javascript:showUserLookUpDialog();" style="text-decoration: none;">
					<img alt=""  src='<c:url value="/customTheme/Icons/BlueLotus_DMS_icons-30.png"></c:url>'>
				</a>
		</c:if>
		
	</td>
	<td class="spacingColumnWidthLess">
		
	</td>									
</tr>
<tr>
	<td class="spacingColumnWidthLess"></td>
	<td class="formLabel"></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formError">
		<form:errors path="docOwnerName" cssClass="errorMsg"></form:errors>
	</td>
	<td class="spacingColumnWidthMedium"></td>
	<td class="formLabel"></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formError">
		 <form:errors path="docDepttId" cssClass="text errorMsg"></form:errors> 
	</td>
	<td class="spacingColumnWidthLess"></td>
</tr>
<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
    
<%-- <table>
	<tr>
		<td class="text ui-widget"><label>Document Owner Id</label> </td>
		<td class="spacingColumn"></td>
		<td>
			<form:input path="docOwnerId" id="userIdResult" cssClass="input ui-widget-content " readonly="true"/> 
		</td>
		<td class="spacingColumn"></td>
		<td class="text ui-widget"><label>Document Owner Name</label> </td>
		<td class="spacingColumn"></td>	
		<td>
			<form:input path="docOwnerName" id="userNameResult" cssClass="input ui-widget-content " readonly="true"/> 
		</td>
	</tr>
	<tr>
		<td colspan="2"></td>
		<td class="text ui-widget">
			<form:errors path="docOwnerId" cssClass="text errorMsg"></form:errors>
		</td>
		<td class="spacingColumn"></td>
		<td colspan="2"></td>
		<td class="text ui-widget">
			<form:errors path="docOwnerName" cssClass="text errorMsg"></form:errors>
		</td>
	</tr>
	<tr class="spacingRow"><td></td> </tr>
	<tr>
		<td class="text ui-widget"><label>Document Location</label> </td>
		<td class="spacingColumn"></td>
		<td>
			<form:hidden path="docLocId" id="locationNameResult"/>
			<form:input path="docLoc" id="locationName" cssClass="input ui-widget-content" readonly="true"/>
			<form:select path="docLocId" cssClass="text ui-widget-content ui-corner-all" 
				onchange="loadDepttForBU(this.id,'docDepttId')">
				<form:option value="0">Choose Location</form:option>
				<c:forEach items="${BU_ID_NAME_MAP}" var="item">
					<form:option value="${item.key}">${item.value}</form:option>
				</c:forEach>
			</form:select> 
		</td>
		<td class="spacingColumn"></td>
		<td class="text ui-widget"><label>Document Department</label> </td>
		<td class="spacingColumn"></td>	
		<td>
			<form:hidden path="docDepttId" id="departmentNameResult" />
			<form:input path="docDeptt" id="departmentName" cssClass="input ui-widget-content" readonly="true"/>
			<form:select path="docDepttId" cssClass="text ui-widget-content ui-corner-all">
			<form:option value="0">Choose Department</form:option>
				<c:forEach items="${DEPTT_ID_NAME_MAP}" var="item">
					<form:option value="${item.key}">${item.value}</form:option>
				</c:forEach>
				</form:select>
		</td>
		<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<img alt="" height="40" src="<c:url value="/search.png"></c:url>" onclick="showUserLookUpDialog();" ><br>&nbsp;&nbsp;<label style="font-size: 0.6em;"> User Lookup </label> </td>
		
	</tr>
	<tr>
		<td colspan="2"></td>
		<td class="text ui-widget">
			<form:errors path="docLocId" cssClass="text errorMsg"></form:errors>
		</td>
		<td class="spacingColumn"></td>
		<td colspan="2"></td>
		<td class="text ui-widget">
			<form:errors path="docDepttId" cssClass="text errorMsg"></form:errors>
		</td>
	</tr>
	<tr class="spacingRow"><td></td> </tr>
</table> --%>


